package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 套管伸长与回缩计算结果 对应表 CM_ELONGRETRACT_RESULT
public class CM_ElongretractResult extends BABaseEntity{
    @Id
    @GenericGenerator(name="ElongResultGenerator", strategy="uuid")
    @GeneratedValue(generator="ElongResultGenerator")
    private String CM_ElongretractResult_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "ELONGATION")
    private Double elongation;

    @Basic
    @Column(name = "BAGLENGTH")
    private Double bagLength;

    @Basic
    @Column(name = "SHRANK")
    private Double shrank;

    // number与oracle冲突，改为Amount
    @Basic
    @Column(name = "AMOUNT")
    private Double amount;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;
}
